// import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const TicketKey = 'Admin-Ticket'

export function getToken() {
  // return Cookies.get(TokenKey)
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  // return Cookies.set(TokenKey, token)
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getTicket() {
  return localStorage.getItem(TicketKey)
}

export function setTicket(ticket) {
  return localStorage.setItem(TicketKey, ticket)
}

export function removeTicket() {
  return localStorage.removeItem(TicketKey)
}
